package io.bdmc.modules.sys.entity;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 部门管理
 * 
 * @author huang lu
 * @email hlkyo@qq.com
 * @date 2017-06-20 15:23:47
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "sys_dept") // 指定表名
public class SysDept  extends Model<SysDept> {
	private static final long serialVersionUID = 1L;

	// 部门ID
	@TableId(value = "dept_id", type = IdType.AUTO)
	private Long deptId;
	// 上级部门ID，一级部门为0
	private Long parentId;
	// 部门名称
	private String name;

	private String cascader;
	// 排序
	private Integer orderNum;
	/**
	 * ztree属性
	 */
	@TableField(exist = false)
	private Boolean open;

	private String lat;

	private String lng;

	 /**
     * 推送配置id
     */
    private Long configId;

	@TableField(exist = false)
	private List<?> children;

	// 上级部门名称
	@TableField(exist = false)
	private String parentName;

}
